#include<iostream>
using namespace std;
class Complex
{
private:
    float real, image;
public:
    Complex(float x = 0, float y = 0) {
        real = x;
        image = y;
    }
    friend Complex operator+(Complex&a, Complex&b) {
        Complex c(a.real + b.real, a.image + b.image);
        return c;
    }
    friend Complex operator-(Complex& a, Complex& b) {
        Complex c(a.real - b.real, a.image - b.image);
        return c;
    }
    friend Complex operator*(Complex& a, Complex& b) {
        Complex c(a.real * b.real - a.image * b.image, a.real * b.image + a.image * b.real);
        return c;
    }
    void show() {
        cout << "Real=" << real << " Image=" << image << endl;
    }
};
int main()
{
    int r1, r2, i1, i2;
    cin >> r1 >> i1 >> r2 >> i2;
    Complex c1(r1, i1);
    Complex c2(r2, i2);
    Complex c;
    c = c1 + c2;
    c.show();
    c = c1 - c2;
    c.show();
    c = c1 * c2;
    c.show();
	return 0;
}